import requests
from bs4 import BeautifulSoup as bs

url = 'https://yandex.ru/news/region/novosibirsk'

response = requests.get(url)

soup = bs(response.text, 'lxml')

news_title = soup.find_all('h2', class_='mg-card__title')

news_content = soup.find_all('div', class_='mg-card__annotation')

news_source = soup.find_all('span', class_='mg-card-source__source')

news_time = soup.find_all('span', class_='mg-card-source__time')

#news_soup = news_title + '\n===\n' + news_content

news_list = []

for news in range(len(news_title)):

    news = news_title[news].text + '\n' + news_content[news].text + '\n\n' + news_source[news].text + '\n' + news_time[news].text + '\n\n'
 
    news_list.append(news)

news_list.reverse()

for news in news_list:
    print(news)
